{extend name="../../admin/view/main"}
{block name="content"}
<div class="think-box-shadow">
    <fieldset>
        <legend>条件搜索</legend>
        <form action="admin.html#{:sysuri()}" id="TagsDataSearch" autocomplete="off" class="layui-form layui-form-pane nowrap form-search" method="get" onsubmit="return false">

            <div class="layui-form-item layui-inline">
                <label class="layui-form-label">渠道名称</label>
                <label class="layui-input-inline">
                    <input class="layui-input" name="name" placeholder="请输入公众号名称" value="{$get.name|default=''}">
                </label>
            </div>
            <div class="layui-form-item layui-inline">
                <label class="layui-form-label">结算时间</label>
                <label class="layui-input-inline">
                    <input class="layui-input" data-date-range name="create_at" placeholder="请选择创建时间" value="{$get.create_at|default=''}">
                </label>
            </div>

            <div class="layui-form-item layui-inline">
                <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
            </div>

        </form>
    </fieldset>
    <table class="layui-table margin-top-10" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='list-table-check-td think-checkbox'>
                    <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
                </th>
                <th>名称</th>
                <th>金额</th>
                <th>账户信息</th>
                <th>状态</th>
                <th>渠道</th>
                <th>时间</th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr>
                <td class='list-table-check-td think-checkbox'>
                    <label><input class="list-check-box" type='checkbox' value='{$vo.id}'></label>
                </td>
                <td>{$vo.name|default=''}</td>
                <td>￥{$vo.amount|default=''}</td>
                <td class="nowrap relative">
                    <div class="inline-block sub-strong-red">
                            开户行：<span class="color-text">{$vo.bank_name|default='--'}</span><br>
                            开户支行：<span class="color-text">{$vo.bank_bran|default='--'}</span><br>
                            开户人：<span class="color-text">{$vo.bank_user|default='--'}</span><br>
                            银行账号：<span class="color-text">{$vo.bank_code|default='--'}</span><br>
                        </div>
                </td>
                <td>
                    {if $vo.audit_status eq 1}待打款{else}已打款{/if}
                </td>
                <td>
                    {if $vo.channel eq 1}公众号{else}视频号{/if}
                </td>
                <td class="nowrap">
                    <div>提交时间：{$vo.create_at|default='--'}</div>
                    <div>打款时间：{$vo.trade_time|default='--'}</div>
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}
